import { request } from '@/utils/hsj/service/index'

// 查询文件列表
export function fileParentIdMappingList(query) {
  return request({
    url: '/system/file/mapping/list',
    method: 'get',
    params: query,
  })
}

// 查询文件详细
export function getFileParentIdMapping(fileParentIdMappingId) {
  return request({
    url: '/system/file/mapping/' + fileParentIdMappingId,
    method: 'get',
  })
}

// 新增文件
export function insertFileParentIdMapping(data) {
  return request({
    url: '/system/file/mapping',
    method: 'post',
    data: data,
  })
}

// 修改文件
export function updateFileParentIdMapping(data) {
  return request({
    url: '/system/file/mapping',
    method: 'put',
    data: data,
  })
}

// 删除文件
export function delFileParentIdMapping(fileParentIdMappingId) {
  return request({
    url: '/system/file/mapping/' + fileParentIdMappingId,
    method: 'delete',
  })
}
